-- Standard growth logic, swap node until we reach the last stage.
function farming.classic_growth(pos, next_stage, growth)
  local p2 = minetest.registered_nodes[next_stage].place_param2 or 1
  minetest.swap_node(pos, {name = next_stage, param2 = p2})

  return growth
end
